package com.mac.pojo;

import java.sql.Date;

/**
 *  存储成员信息实体类
 */

public class Member {
    // 成员唯一标识，自增主键
    private Integer memberId;

    // 关联用户表的用户ID
    private Integer userId;

    // 成员姓名，不能为空
    private String memberName;

    // 成员性别
    private String gender;

    // 成员职务
    private String position;

    // 成员日期
    private Date birthdayDate;

    // 成员荣誉
    private String honors;

    // 成员简介
    private String bios;
    // 座右铭
    private String motto;

    public Member() {
    }

    public Member(Integer memberId, Integer userId, String memberName, String gender, String position, Date birthdayDate, String honors, String bios, String motto) {
        this.memberId = memberId;
        this.userId = userId;
        this.memberName = memberName;
        this.gender = gender;
        this.position = position;
        this.birthdayDate = birthdayDate;
        this.honors = honors;
        this.bios = bios;
        this.motto = motto;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public Integer getMemberId() {
        return memberId;
    }

    public void setMemberId(Integer memberId) {
        this.memberId = memberId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public Date getBirthdayDate() {
        return birthdayDate;
    }

    public void setBirthdayDate(Date birthdayDate) {
        this.birthdayDate = birthdayDate;
    }

    public String getHonors() {
        return honors;
    }

    public void setHonors(String honors) {
        this.honors = honors;
    }

    public String getBios() {
        return bios;
    }

    public void setBios(String bios) {
        this.bios = bios;
    }

    public String getMotto() {
        return motto;
    }

    public void setMotto(String motto) {
        this.motto = motto;
    }

    @Override
    public String toString() {
        return "Member{" +
                "memberId=" + memberId +
                ", userId=" + userId +
                ", memberName='" + memberName + '\'' +
                ", position='" + position + '\'' +
                ", birthdayDate=" + birthdayDate +
                ", honors='" + honors + '\'' +
                ", bios='" + bios + '\'' +
                ", motto='" + motto + '\'' +
                '}';
    }
}
